package com.chandon.T02_functional;

import com.chandon.common.Cv;
import com.chandon.common.Role;

import java.util.function.BiFunction;

/**
 * 描述
 *
 * @author Dong
 * @version 1.0
 * @date 2021-04-14 20:04
 */

public class T04_TestBiFunction {
    public static void main(String[] args) {


        Cv cv1 = Cv.builder().name("asamiyui").age(17).scope(10).build();
        Role role1 = Role.builder().cv(cv1).name("a").build();


        BiFunction<Cv, Role, String> biFunction0 = (cv, role) -> {
            return cv.getName() + "--" + role.getName();
        };

        BiFunction<Cv, Role, String> biFunction1 = (cv, role) -> cv.getName() + "--" + role.getName();

        String s = biFunction0.apply(cv1, role1);
        System.out.println();


    }

}
